<template>
	<!-- 添加车辆 -->
	<view>
		<view class="nav">
			<uni-nav-bar :border="false" left-icon="left" leftText="返回" title="添加车辆" />
		</view>

		<view class="ing">
			<image src="/static/images/addcar.jpg" mode=""></image>
		</view>
		{{car}}
		
		<view class="int">
			 <car-number-input @numberInputResult="numberInputResult" :defaultStr="car.carno"></car-number-input>
			  
			<!-- <input type="text" placeholder="请输入车牌号"/> -->
		</view>
		
		<view class="add">
			添加
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
     car:{
    carno:""
}

			}
		},
		methods: {
 numberInputResult(e) {
	 this.car.carno=e;
            console.log('结果--' + e)
        }
		}
	}
</script>

<style lang="scss" scoped>
	@import url('@/static/css/caradd.css');
</style>